﻿<UserControl x:Class="Panel3d.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
   xmlns:SL3DControls="clr-namespace:SL3DControls;assembly=SL3DControls" mc:Ignorable="d"
    d:DesignHeight="640" d:DesignWidth="480" Width="640" Height="480">
    <Grid x:Name="LayoutRoot">
        <SL3DControls:DepthCanvas Speed="100" Background="{x:Null}">
            <Canvas x:Name="LayerBackground" SL3DControls:DepthCanvas.ZDepth="0" Width="640" Height="480">
                <Grid>
                	<Image HorizontalAlignment="Left" VerticalAlignment="Top" Height="480" Source="Sunset.jpg" Width="640"/>
                    
            	</Grid>
            </Canvas>
            <Canvas x:Name="Layer20" SL3DControls:DepthCanvas.ZDepth="200" Width="640" Height="480">
            	<TextBlock Canvas.Left="227" TextWrapping="Wrap" Canvas.Top="182" Text="DepthCanvas. " FontFamily="Verdana" FontWeight="Bold" FontStyle="Italic" FontSize="29.333"/>
            </Canvas>
            <Canvas x:Name="Layer40" SL3DControls:DepthCanvas.ZDepth="40" Width="640" Height="480">
                <Rectangle Fill="#8310FBD5" Height="301" Canvas.Left="74" StrokeThickness="4" Canvas.Top="92" Width="98" RadiusX="10" RadiusY="10">
                	<Rectangle.Stroke>
                		<LinearGradientBrush EndPoint="2.925,0.874" StartPoint="0.655,0.659">
                			<GradientStop Color="Black" Offset="0"/>
                			<GradientStop Color="White" Offset="1"/>
                		</LinearGradientBrush>
                	</Rectangle.Stroke>
                </Rectangle>
                <Rectangle Fill="#FF1B10FB" Height="141" Canvas.Left="419" Stroke="Black" StrokeThickness="4" Canvas.Top="260" Width="144"/>
            </Canvas>
            <Canvas x:Name="Layer60" SL3DControls:DepthCanvas.ZDepth="60" Width="640" Height="480">
                <Rectangle Height="95" Canvas.Left="212" StrokeThickness="4" Canvas.Top="220" Width="248" >
                	<Rectangle.Stroke>
                		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                			<GradientStop Color="#FF747474" Offset="0.009"/>
                			<GradientStop Color="White" Offset="0.569"/>
                			<GradientStop Color="#FFBCBCBC" Offset="1"/>
                		</LinearGradientBrush>
                	</Rectangle.Stroke>
					<Rectangle.Fill>
                		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                			<GradientStop Color="#763DAB08" Offset="0"/>
                			<GradientStop Color="#FF028FFF" Offset="1"/>
                		</LinearGradientBrush>
                	</Rectangle.Fill>
				</Rectangle>
                <StackPanel Canvas.Left="83" Orientation="Vertical" Canvas.Top="125" Width="88">
                	<RadioButton Content="RadioButton" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,2"/>
                	<RadioButton Content="RadioButton" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,2"/>
                	<RadioButton Content="RadioButton" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,2"/>
                	<RadioButton Content="RadioButton" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,2"/>
                	<RadioButton Content="RadioButton" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,2"/>
                	<RadioButton Content="RadioButton" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,2"/>
                	<Button Content="Button"/>
                </StackPanel>
            </Canvas>
            <Canvas x:Name="Layer60_Ani" SL3DControls:DepthCanvas.ZDepth="60" Height="480" Width="640" MouseLeftButtonDown="Layer60_Ani_MouseLeftButtonDown">
            	<Rectangle Height="95" Canvas.Left="203" StrokeThickness="4" Canvas.Top="36" Width="115" >
            		<Rectangle.Stroke>
            			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            				<GradientStop Color="#FF2961C0" Offset="0.991"/>
            				<GradientStop Color="White" Offset="0.112"/>
            				<GradientStop Color="#FFBCBCBC"/>
            			</LinearGradientBrush>
            		</Rectangle.Stroke>
            		<Rectangle.Fill>
            			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            				<GradientStop Color="#767A08AB" Offset="0"/>
            				<GradientStop Color="#FFFF0202" Offset="1"/>
            			</LinearGradientBrush>
            		</Rectangle.Fill>
            	</Rectangle>
            </Canvas>
			   <Canvas x:Name="Layer120" SL3DControls:DepthCanvas.ZDepth="120" Width="640" Height="480">
                <TextBlock Canvas.Left="227" TextWrapping="Wrap" Canvas.Top="234" Height="64" Width="210"><Run Text="DepthCanvas.   A small demo showing"/><LineBreak/><Run Text=" the possibilities. Diferent layers and a small rotation..."/></TextBlock>


            </Canvas>
        </SL3DControls:DepthCanvas>
    </Grid>
</UserControl>
